#define  _CRT_SECURE_NO_WARNINGS 1

int* getConcatenation(int* nums, int numsSize, int* returnSize) {
    int* tmp = (int*)malloc(sizeof(int) * 2 * numsSize);
    if (tmp)
    {
        *returnSize = numsSize * 2;
        int pos = 0;
        for (int i = 0; i < 2; i++)
        {
            for (int j = 0; j < numsSize; j++)
            {
                tmp[pos++] = nums[j];
            }
        }
    }
    else
    {
        return NULL;
    }
    return tmp;
}